/*
 * @Auther: Ye Chen
 * @Date: 2020-07-29 14:18:16
 * @LastEditors: Ye Chen
 * @LastEditTime: 2020-08-13 17:17:22
 * @Description:
 */
import { axios } from '../request'

// 查询订单列表
export function queryOrderList(params) {
  return axios({
    url: '/order/list',
    method: 'GET',
    params
  })
}

// 删除订单
export function deleteOrder(data) {
  return axios({
    url: '/order',
    method: 'DELETE',
    data
  })
}

// 取消订单
export function cancelOrder(data) {
  return axios({
    url: '/order/cancel',
    method: 'PUT',
    data
  })
}
